create-vaadin-controller
Purpose
Creates an empty Vaadin controller and associated unit testExamples
grails create-vaadin-controller grails create-vaadin-controller org.bookstore.Book
Description
Creates an empty VaadinController in thegrails-app/controllers
dirNote that this command is identical to Grails's create-controller
except that it uses a different template - located at src/templates/vaadin/artifact/VaadinController
The generate-vaadin-controller
command generates just the controller (and associated unit test) that implements CRUD for the given domain class. The argument is optional, but if you don't include it the command will ask you for the name of the domain class to scaffold. So for a domain class org.bookstore.Book
, this command will generate the controller BookVaadinController.groovy
in grails-app/controllers/org/bookstore
.Usage:
grails create-vaadin-controller [controller name]